package com.bright.cwduijie.duijie.repository;

import com.bright.cwduijie.duijie.pojo.po.DuijieDataKeys;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DuijieDataKeysRepository extends JpaRepository<DuijieDataKeys, Integer>, JpaSpecificationExecutor<DuijieDataKeys> {

    List<DuijieDataKeys> getByMethodNoAndDataKeyIn(String methodNo, List<String> dataKey);

//    @Query(" from DuijieDataKeys where methodNo=:methodNo and not exists (select 1 from )")
//    List<DuijieDataKeys> getByMethodNoAndNotExistsDataKeys(@Param("methodNo") String methodNo)

    List<DuijieDataKeys> getByMethodNoAndDataKeyLike(String methodNo, String dataKey);

}